package cn.edu.scau.cmi.dengzejun.chapter09;

import java.util.*;
import java.text.*;

public class Example9_14 {
	public static void main(String args[]) {
		Date nowTime = new Date();
		System.out.println(nowTime);
		String pattren = "yyy-MM-dd";
		SimpleDateFormat sdf = new SimpleDateFormat(pattren);
		String timePattern = sdf.format(nowTime);
		System.out.println(timePattern);
		pattren = "G yyy year MMMd day E HH hour mm mintue ss second z";
		sdf = new SimpleDateFormat(pattren);
		timePattern = sdf.format(nowTime);
		System.out.println(timePattern);
		long time = System.currentTimeMillis();
		System.out.println("it is "+time+" after the B.C");
		return;
	}
}
